/*
* StakeholderTierEntity.java
*/
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class StakeholderTier implements Serializable {

    @Id
    private String name;
    private Integer commissionPercent;
    private Double feeSubscription;
    private Double feeMarketIntelligence;
    private Double costPerClick;

    /** Creates a new instance of StakeholderTierEntity */
    public StakeholderTier() {}

    public boolean create(String name, Integer commissionPercent, Double feeSubscription, Double feeMarketIntelligence, Double costPerClick) {
        try {
            this.setName(name);                            
            this.setCommissionPercent(commissionPercent);
            this.setFeeSubscription(feeSubscription);
            this.setFeeMarketIntelligence(feeMarketIntelligence);
            this.setCostPerClick(costPerClick);
            return true;
        }catch (Exception ex) {
            return false;
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCommissionPercent() {
        return commissionPercent;
    }

    public void setCommissionPercent(Integer comissionPercent) {
        this.commissionPercent = comissionPercent;
    }

    public Double getFeeSubscription() {
        return feeSubscription;
    }

    public void setFeeSubscription(Double feeSubscription) {
        this.feeSubscription = feeSubscription;
    }

    public Double getFeeMarketIntelligence() {
        return feeMarketIntelligence;
    }

    public void setFeeMarketIntelligence(Double feeMarketIntelligence) {
        this.feeMarketIntelligence = feeMarketIntelligence;
    }

    /**
     * @return the costPerClick
     */
    public Double getCostPerClick() {
        return costPerClick;
    }

    /**
     * @param costPerClick the costPerClick to set
     */
    public void setCostPerClick(Double costPerClick) {
        this.costPerClick = costPerClick;
    }
}

